import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxInput, AxLabel, AxSelectSearch, AxTextArea } from '@/components/AxForm/AxFormItem';
import { AxUploadPicture } from '@/components/AxForm/AxFormItem/AxUpload';

const Create: React.FC<any> = props => {
  const { form, ...rest } = props;

  return (
    <>
      <AxCreateForm
        form={form}
        title="申请项目经费"
        {...rest}
        items={[
          <AxInput form={form} label="项目经费名称" field="campusId" required />,
          <AxInput form={form} label="经费本编号" field="campusId1" required />,
          <AxInput form={form} label="申请金额" field="campusId2" required />,
          <AxSelectSearch form={form} label="项目经费类型" field="campusId2" />,
          <AxUploadPicture form={form} label="上传附件" uploadUrl={'www'} field="attachmentIds" />,
          <AxTextArea form={form} label="申请说明" field="campusId3" />,
        ]}
      />
    </>
  );
};

export default Form.create<any>()(Create);
